package com.bmft;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.graphics.Paint;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import static android.graphics.Paint.UNDERLINE_TEXT_FLAG;

public class TextViewActivity03 extends AppCompatActivity {
    private TextView text_view_back_main_btn ;
    private TextView under_line_text_view_03;
    private TextView strike_through_text_view_03;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_text_view03);
        text_view_back_main_btn = findViewById(R.id.text_view_back_main_btn);
        text_view_back_main_btn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(TextViewActivity03.this, MainActivity.class);
                startActivity(intent);
            }
        });
        //下划线 underline
        under_line_text_view_03 = findViewById(R.id.under_line_text_view_03);
        under_line_text_view_03.getPaint().setFlags(UNDERLINE_TEXT_FLAG);
        //删除线 strike through
        strike_through_text_view_03 = findViewById(R.id.strike_through_text_view_03);
        strike_through_text_view_03.getPaint().setFlags(Paint.STRIKE_THRU_TEXT_FLAG);

        
    }
}